<style>
    .hero-unit {
        width:500px;
        margin:35px auto;
        overflow:hidden;
    }
    .hero-unit h2 {
        text-align:center;
        position: relative;
        bottom:60px;
        border-bottom:1px solid #ccc;
    }
    .hero-unit p.text {
        text-align:center;
        font-weight:bold;
        font-size:17px;
        height:50px;
        line-height:50px;
        float:left;
        margin-left:170px
    }
    .hero-unit p.text img {
        float:left;
        margin-right:15px;
        margin-top:-3px;
    }
    .hero-unit a {
        margin-top:65px;
        clear:both;
        display:block;
        text-align:center;
        cursor:pointer;
        color:#06f;
    }
    .hero-unit a:hover {
        color:#f60;
    }
</style>
<script type="text/javascript">

    var time = 3;
    var event;
    $(document).ready(function() {
        event = setInterval(countTime, 1000);
    });

    function countTime()
    {
        time--;
        $('#time').html(time);

        if($('#time').html() < 1)
        {
            clearInterval(event);
            location.href = $('#url').val()
        }
    }

</script>
<div class="hero-unit">
    <p class="text"><img src="<?php echo Yii::app()->theme->baseUrl.'/img/icon-success.jpg'?>"><?php echo urldecode($msg);?></p>
    <a href="<?php echo $url == '' ? $_SERVER["HTTP_REFERER"] : $this->createUrl(urldecode($url)); ?>">将在 <span id="time" style="color:red">3</span> 秒后跳转，如不想等待请点击返回...</a>
    <input type="hidden" id="url" value="<?php echo $url == '' ? $_SERVER["HTTP_REFERER"] : $this->createUrl(urldecode($url)); ?>"/>
</div>